package org.gongliang;

import org.gongliang.jfinal.model.App;
import org.gongliang.jfinal.model.Area;
import org.gongliang.jfinal.model.Department;
import org.gongliang.jfinal.model.Dictionary;
import org.gongliang.jfinal.model.Log;
import org.gongliang.jfinal.model.Resources;
import org.gongliang.jfinal.model.Role;
import org.gongliang.jfinal.model.User;

import com.jfinal.plugin.activerecord.ActiveRecordPlugin;

/**
 * 本 demo 仅表达最为粗浅的 jfinal 用法，更为有价值的实用的企业级用法
 * 详见 JFinal 俱乐部: http://jfinal.com/club
 * 
 * Generated by JFinal, do not modify this file.
 * <pre>
 * Example:
 * public void configPlugin(Plugins me) {
 *     ActiveRecordPlugin arp = new ActiveRecordPlugin(...);
 *     _MappingKit.mapping(arp);
 *     me.add(arp);
 * }
 * </pre>
 */
public class _MappingKit {

	public static void mapping(ActiveRecordPlugin arp) {
		arp.addMapping("sys_app", "id", App.class);
		arp.addMapping("sys_area", "id", Area.class);
		arp.addMapping("sys_department", "id", Department.class);
		arp.addMapping("sys_dictionary", "id", Dictionary.class);
		arp.addMapping("sys_log", "id", Log.class);
		arp.addMapping("sys_resources", "id", Resources.class);
		arp.addMapping("sys_role", "id", Role.class);
		arp.addMapping("sys_user", "id", User.class);
	}
}

